#ifndef _PLATEAU_H
#define _PLATEAU_H

enum typePiece{
    TourB=1,
    TourN=10,
    CavalierB=2,
    CavalierN=20,
    FouB=3,
    FouN=30,
    DameB=4,
    DameN=40,
    RoiB=6,
    RoiN=60,
    PionB=5,
    PionN=50,
    Vide=0
};


struct Plateau
{
    int dimx;
	int dimy;
	typePiece plat [8][8];
};

void platInit(Plateau& p);
bool platEstPositionPieceValide(const Plateau& p, const int& x, const int&  y);
typePiece platGetXY(const Plateau& p, const int x, const int y);
int getDimX(const Plateau& p);
int getDimY(const Plateau& p);

void ecranVersPlateau(const int xmouse, int ymouse, int& xplateau, int& yplateau);

#endif
